package org.vacula.base;

public class Test1 {
	public static void main(String[] args) {
		int k = 10;
		int x = 22;
		int n = k * (k - 1) / 2;
		int c = x / k;
		int o = x % k;
		int p = (k-1 + k-c) / 2 * c % k;
		int q = c - p;
		System.out.println(q);
	}
	
//	public class HashMapBuilder<K, V> extends HashMap<K, V> {
//		   private static final long serialVersionUID = -7382492729276153002L;
//		   
//		   public HashMapBuilder<K,V> sput (K key, V value) {
//		      put (key, value);
//		      return this;
//		   }
//		} 
}
